package com.arvato.admin01.Util;

import com.alibaba.fastjson.JSON;
import com.arvato.admin01.pojo.ExportYqfkdj;

import java.util.UUID;

public class JsonUtil {

	private JsonUtil(){}

	public static <T> T parseObject(String json,Class<T> clazz){
		return JSON.parseObject(json, clazz);
	}

	public static String toJSONString(Object object){
		return JSON.toJSONString(object);
	}

	public static String getuuid() {
		return UUID.randomUUID().toString().replaceAll("-", "");
	}


	public static String Object2String(Object o) {
		if (o == null) {
			return "";
		} else {
			return o.toString();
		}
	}
}
